package com.mocaris.android.gank.data

class LiveDataResouce<Data> {
    var data: Data? = null

    var result: Boolean = false

    var errorCode: Int = -1

    var errorMsg: String = ""

    constructor(data: Data) {
        this.data = data
        result = true
    }

    constructor(errorCode: Int, errorMsg: String) {
        this.errorCode = errorCode
        this.errorMsg = errorMsg
    }

    constructor(data: Data?, result: Boolean, errorCode: Int, errorMsg: String) {
        this.data = data
        this.result = result
        this.errorCode = errorCode
        this.errorMsg = errorMsg
    }


}